package com.gtt.jr.action.admin;

import javax.annotation.Resource;

import com.gtt.jr.action.base.BaseModelAction;
import com.gtt.jr.action.model.ContainerViewModel;
import com.gtt.jr.app.ContainerRepository;
import com.gtt.jr.app.domain.ContainerVO;

/**
 * ContainerViewExecAction
 * 
 * @author 高甜甜(gao12581@sina.com)
 * @date 2011-3-9
 * 
 */
public class ContainerViewExecAction extends
		BaseModelAction<ContainerViewModel> {

	private static final long serialVersionUID = 3799846953090897888L;

	@Resource
	private ContainerRepository containerRepository;

	@Override
	public String execute() throws Exception {
		ContainerVO containerVO = containerRepository.get(getModel().getId());
		getModel().fromVO(containerVO);
		return JSON;
	}
}
